package com.fei.mapper;

import com.fei.bean.BroadcastBean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BroadcastMapper {

//    查询该用户的歌单
    public List<BroadcastBean> selectOneUserId(String phone);

//    根据id查询该歌单的信息
    public BroadcastBean selectOneBroadId(int id);

//    查询该用户是否添加过该歌曲进歌单
    public Integer selectCountMusic(BroadcastBean broadcastBean);

//    添加歌单
    public int insertBroadcast(BroadcastBean broadcastBean);

//   根据歌曲id删除歌单
    public int deleteOneMusicId(Integer music_id);

}
